package org.okwangxing.vsearch;

/**
 * 定义zookeeper客户端,T 为客户端向外交换数据的类型
 * 
 * @author ruodao
 * 
 */
public abstract class ZooKeeperClient<T> {
	private String type;
	private T data;

	public ZooKeeperClient(String type) {
		super();
		this.type = type;
	}

	public abstract void start() throws Exception;

	public abstract void stop() throws Exception;

	public String getType() {
		return type;
	}

	public T getData() {
		return data;
	}

	public void setData(T data) {
		this.data = data;
	}

}
